package com.banfan.almond.web.controller;

import com.banfan.almond.utils.ResultUtil;
import com.banfan.almond.web.annotation.OperationLogger.OperationLogger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class TestController {


    @OperationLogger(operation = "Post测试")
    @PostMapping("/test")
    public String test() {
        return ResultUtil.successWithData(" @PostMapping(\"/test\")");
    }


    @OperationLogger(operation = "Get测试")
    @GetMapping("/test")
    public String getTest() {

        return ResultUtil.successWithData("@GetMapping(\"/test\")");
    }

}
